---
page_title: "cloudflare_ip_ranges Data Source - Cloudflare"
subcategory: ""
description: |-
  Use this data source to get the IP ranges https://www.cloudflare.com/ips/ of Cloudflare network.
---

# cloudflare_ip_ranges (Data Source)

Use this data source to get the [IP ranges](https://www.cloudflare.com/ips/) of Cloudflare network.

## Example Usage

```terraform
data "cloudflare_ip_ranges" "cloudflare" {}

resource "example_firewall_resource" "example" {
  name    = "from-cloudflare"
  network = "default"

  source_ranges = data.cloudflare_ip_ranges.cloudflare.ipv4_cidr_blocks

  allow {
    ports    = "443"
    protocol = "tcp"
  }
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `china_ipv4_cidr_blocks` (List of String) The lexically ordered list of only the IPv4 China CIDR blocks.
- `china_ipv6_cidr_blocks` (List of String) The lexically ordered list of only the IPv6 China CIDR blocks.
- `cidr_blocks` (List of String) The lexically ordered list of all non-China CIDR blocks.
- `id` (String) The ID of this resource.
- `ipv4_cidr_blocks` (List of String) The lexically ordered list of only the IPv4 CIDR blocks.
- `ipv6_cidr_blocks` (List of String) The lexically ordered list of only the IPv6 CIDR blocks.


